package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.Lsh活动类型Model;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by ThinkPad on 2016/10/25.
 */
@Transactional
public interface Lsh活动类型Repository extends JpaRepository<Lsh活动类型Model, Integer>, JpaSpecificationExecutor<Lsh活动类型Model> {

    @Query("select a from Lsh活动类型Model a where a.活动类型编号=?1")
    Lsh活动类型Model findById(Integer id);
}
